package com.controller;

import com.mapper.UserMapper;
import com.model.User;
import com.util.ConstantUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@Controller
@PropertySource("classpath:message.properties")
public class TransactionController {

	@Autowired
	private UserMapper userMapper;

	@Autowired
	private Environment env;

	@RequestMapping("/transaction")
	public String transaction(Map<String, Object> model, HttpServletRequest request) {
		User user = (User) request.getSession().getAttribute(ConstantUtil.loginSession);
		model.put("pagename","transaction");
		return "usercenter";
	}


}
